﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MinerManager
{
	public class MessageEventArgs : EventArgs
	{
		public string Message { get; private set; }

		public MessageEventArgs(string message)
		{
			this.Message = message;
		}
	}

	public class LoginHandleEventArgs : EventArgs
	{
		public string UserName { get; private set; }
		public string PassWord { get; private set; }

		public LoginHandleEventArgs(string userName, string passWord)
		{
			this.UserName = userName;
			this.PassWord = passWord;
		}
	}

	public class LoginResultEventArgs : EventArgs
	{
		public bool IsSuccess { get; private set; }
		public string Name { get; private set; }

		public LoginResultEventArgs(bool isSuccess, string name)
		{
			this.IsSuccess = isSuccess;
			this.Name = name;
		}
	}

	public class JsonEventArgs : EventArgs
	{
		public string Json { get; private set; }
		public JsonEventArgs(string json)
		{
			this.Json = json;
		}
	}

	public class ByteEventArgs : EventArgs
	{
		public byte[] Bytes { get; private set; }
		public ByteEventArgs(byte[] bytes)
		{
			this.Bytes = bytes;
		}
	}

	public class ObjectEventArgs : EventArgs
	{
		public object Data { get; private set; }
		public ObjectEventArgs(object data)
		{
			this.Data = data;
		}
	}
}
